import http from "@/api";
import { PORT1 } from "@/api/config/servicePort";

// 获取在线用户列表
export const getOnlineUsersApi = (params: any) => {
	return http.post(PORT1 + "/auth/onlineUsers", params, {});
};

//踢人
export const kickOfflineApi = (params: any) => {
	return http.get(PORT1 + "/auth/kickOffline", params, {});
};

// 操作日志列表
export const operLogApi = (params: any) => {
	return http.post(PORT1 + "/sysOperLog/query", params, {});
};

// 权限列表
export const getPowerApi = (params: any) => {
	return http.post(PORT1 + "/system/powerManage/query", params, {});
};

// 权限保存
export const addPowerApi = (params: any) => {
	return http.post(PORT1 + "/system/powerManage/saveOrUpdate", params, {});
};

// 权限删除
export const deletePowerApi = (params: any) => {
	return http.post(PORT1 + "/system/powerManage/delete", params, {});
};
//
// // 编辑角色
// export const editRoleApi = (params: any) => {
// 	return http.post(PORT1 + "/system/role/editRole", params, {});
// };
//
// // 删除角色
// export const deleteRoleApi = (params: any) => {
// 	return http.post(PORT1 + "/system/roleManage/delete", params, {});
// };
